IEntityStoreAsync<T>
For providers that want a cleaner API with a little more perf
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IEntityStoreAsync<T>
Methods
GetByIdAsync(Object, CancellationToken)
View Source
Declaration
Task<T> GetByIdAsync(object id, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|---|
System.Object | id |
System.Threading.CancellationToken | token |
GetByIdsAsync(IEnumerable, CancellationToken)
View Source
Declaration
Task<IList<T>> GetByIdsAsync(IEnumerable ids, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IList<<T>>>
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | ids |
System.Threading.CancellationToken | token |
GetAllAsync(CancellationToken)
View Source
Declaration
Task<IList<T>> GetAllAsync(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IList<<T>>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
StoreAsync(T, CancellationToken)
View Source
Declaration
Task<T> StoreAsync(T entity, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|---|
<T> | entity |
System.Threading.CancellationToken | token |
StoreAllAsync(IEnumerable<T>, CancellationToken)
View Source
Declaration
Task StoreAllAsync(IEnumerable<T> entities, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<<T>> | entities |
System.Threading.CancellationToken | token |
DeleteAsync(T, CancellationToken)
View Source
Declaration
Task DeleteAsync(T entity, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
<T> | entity |
System.Threading.CancellationToken | token |
DeleteByIdAsync(Object, CancellationToken)
View Source
Declaration
Task DeleteByIdAsync(object id, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Object | id |
System.Threading.CancellationToken | token |
DeleteByIdsAsync(IEnumerable, CancellationToken)
View Source
Declaration
Task DeleteByIdsAsync(IEnumerable ids, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | ids |
System.Threading.CancellationToken | token |
DeleteAllAsync(CancellationToken)
View Source
Declaration
Task DeleteAllAsync(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |